#ifndef IMPORTLICENSEFILEWIDGET_H
#define IMPORTLICENSEFILEWIDGET_H

#include <QWidget>
#include "dropwidget.h"
#include "receive_dbus.h"
#include "interface.h"
#include "mylabel.h"

namespace Ui {
class ImportLicenseFileWidget;
}

class ImportLicenseFileWidget : public QWidget
{
    Q_OBJECT

public:
    explicit ImportLicenseFileWidget(QWidget *parent = nullptr);
    ~ImportLicenseFileWidget();
    void clearData();
    void isSiteLicenseInterFace(bool sl);
    void checkLicense();

private:
    Ui::ImportLicenseFileWidget *ui;
    DropWidget *m_dropWid=nullptr;
    bool slif;
    MyLabel *deleteLabel_1 = nullptr;
    MyLabel *deleteLabel_2 = nullptr;

signals:
    void returnSignal();
    void activateSucceed();
private slots:
    void on_returnbtn_clicked();
    void on_activebtn_clicked();

//public slots:
    void setFileLabel(QStringList licenseFileNameList);

    void deleteLabelSlot(QLabel* label);

protected:
    void paintEvent(QPaintEvent *event);
    bool isSiteLicense(QString lpath);

};

#endif // IMPORTLICENSEFILEWIDGET_H
